package com.zxw.xml.domain.vo;

import com.zxw.xml.annotation.XmlAttributeName;
import com.zxw.xml.annotation.XmlRootElementName;
import com.zxw.xml.annotation.XmlTagName;

/**
 * @projectName: ruoyi
 * @package: com.ruoyi.bmp.fi.domain.vo
 * @className: SyncNcUfinterface
 * @author: zhangxuewei
 * @description: TODO
 * @date: 2023/7/6 13:57
 * @version: 1.0
 */
@XmlRootElementName(tagName = "ufinterface")
public class SyncNcUfinterface {

    @XmlAttributeName(tagName = "account")
    private String account = "develop";

    @XmlAttributeName(tagName = "billtype")
    private String billtype;

    @XmlAttributeName(tagName = "filename")
    private String filename;

    @XmlAttributeName(tagName = "groupcode")
    private String groupcode;

    @XmlAttributeName(tagName = "isexchange")
    private String isexchange = "Y";

    @XmlAttributeName(tagName = "replace")
    private String replace = "Y";

    @XmlAttributeName(tagName = "roottag")
    private String roottag;

    @XmlAttributeName(tagName = "sender")
    private String sender;

    @XmlTagName(tagName = "bill")
    private Bill bill;

    public String getAccount() {
        return account;
    }

    public SyncNcUfinterface setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getBilltype() {
        return billtype;
    }

    public SyncNcUfinterface setBilltype(String billtype) {
        this.billtype = billtype;
        return this;
    }

    public String getFilename() {
        return filename;
    }

    public SyncNcUfinterface setFilename(String filename) {
        this.filename = filename;
        return this;
    }

    public String getGroupcode() {
        return groupcode;
    }

    public SyncNcUfinterface setGroupcode(String groupcode) {
        this.groupcode = groupcode;
        return this;
    }

    public String getIsexchange() {
        return isexchange;
    }

    public SyncNcUfinterface setIsexchange(String isexchange) {
        this.isexchange = isexchange;
        return this;
    }

    public String getReplace() {
        return replace;
    }

    public SyncNcUfinterface setReplace(String replace) {
        this.replace = replace;
        return this;
    }

    public String getRoottag() {
        return roottag;
    }

    public SyncNcUfinterface setRoottag(String roottag) {
        this.roottag = roottag;
        return this;
    }

    public String getSender() {
        return sender;
    }

    public SyncNcUfinterface setSender(String sender) {
        this.sender = sender;
        return this;
    }

    public Bill getBill() {
        return bill;
    }

    public Bill setBill(Object ob) {
        this.bill = new Bill();
        this.bill.setObject(ob);
        return this.bill;
    }

    class Bill {

        @XmlTagName(tagName = "billhead")
        private Object object;

        @XmlAttributeName(tagName = "id")
        private String id;

        public Object getObject() {
            return object;
        }

        public void setObject(Object object) {
            this.object = object;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }
}
